import fetch from '@/common/utils/http'

/* 获取列表 */
export const getList = () =>
  fetch({
    url: '/platform/action/console/dynamic-form/query',
    method: 'POST',
    data: {}
  })

/* 更新模版 */
export const updateTemplate = (data: any) =>
  fetch({
    url: '/platform/action/console/dynamic-form/update',
    method: 'POST',
    data
  })

/* 模版详情 */
export const detailTemplate = (data: any) =>
  fetch({
    url: '/platform/action/console/dynamic-form/details',
    method: 'POST',
    data
  })
